<!DOCTYPE html>
<html>
  <head>
    <title>追踪记录</title>
    <#include "/inc/base-style.ftl">
  </head>
  <body class="${bodyClass}">
    <div class="wrapper">
      <!-- Main Header -->
     <#include "/inc/main-header.ftl">
      <!-- Left side column. contains the logo and sidebar -->
      <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
          <#include "/inc/slidebar-menu.ftl">
        </section>
        <!-- /.sidebar -->
      </aside>

      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            追踪记录
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
        <div class="box">
        
            <div class="box-header">
               <form class="form-inline" role="form" method="get" action="">  
					  <div class="form-group">
					    <label class="" for="serviceType">类型:</label>
					    <select class="form-control" name="serviceType" id ="serviceType" style="width: 150px;">
	                        <option value="">全部</option>
	                        <#list serviceTypeList as type>
	                        <option value="${type.itemKey}">${type.itemName}</option>
	                        </#list>
	                      </select>
					  </div>
					  <div class="form-group">
					    <label class="" for="keyword">关键字:</label>
					     <input type="text" class="form-control" name="keyword" id ="keyword" placeholder="请输入关键字" style="width: 150px;">
					  </div>
					       <input type="hidden"  name="search" value="search"/>
		                   <input type="hidden"  name="uid" value="${uid}"/>
		                   <button type="submit" class="btn btn-default">提交</button>
		                   <button class="btn btn-primary" type="button" id="add_service_record">新增跟踪记录</button>
			   </form> 
               <!-- <form role="form" method="get" action="">      
                   <div class="form-group">
                      <label for="inputfile">类型</label>
                      <select class="form-control" name="serviceType">
                        <option value="">全部</option>
                        <#list serviceTypeList as type>
                        <option value="${type.itemKey}">${type.itemName}</option>
                        </#list>
                      </select>
                   </div>              
                   <div class="form-group">
                       <label for="name">关键字</label>
                       <input type="text" class="form-control" name="keyword" 
                         placeholder="请输入关键字">
                   </div>
                   <input type="hidden"  name="search" value="search"/>
                   <input type="hidden"  name="uid" value="${uid}"/>
                   <button type="submit" class="btn btn-default">提交</button>
                   <button class="btn btn-primary" type="button" id="add_service_record">新增跟踪记录</button>
                </form>-->
            </div>
            
            <div class="box-body">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>ID</th>  
                            <th>联系对象</th>
                            <th>跟踪方式 / 类型 / 目的</th> 
                            <th>服务内容</th>
                            <th>操作人</th>
                            <th>跟踪时间</th>  
                            <th>修改时间</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <#list lists as list>
                        <tr data-event-sign-id="${list.id}">
                            <td>${list.id}</td> 
                            <td>${list.contactTypeName}</td>
                            <td>${list.serviceWayName}/ ${list.serviceTypeName} / ${list.serviceAimName}</td>
                            <td>${list.serviceContent}</td>
                            <td>${list.serviceId}</td>
                            <td><#if (list.createTime)??>${list.createTime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
                            <td><#if (list.updateTime)??>${list.updateTime?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
                            <td>
                                <a href="javascript:;" onclick="editSerRecord(${list.id});return false;" class="btn btn-info">编辑</a>
                             </td>
                        </tr>
                        </#list>
                    </tbody>
                </table>
            </div>
            <div class="box-footer">
                <@zhd.page pm url />
            </div>
            
        </div>
        
        <!-- Your Page Content Here -->
        <#include "/crm/serviceRecord/addServiceRecord.ftl">

        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
    <#include "/inc/main-footer.ftl">

    

    <#include "/inc/base-script.ftl"> 
    <#include "/script/serviceRecord/mainScript.ftl">
  </body>
</html>
